package com.music;

import com.music.config.RibbonConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient //用于向consul或者zookeeper或nacos 作为注册中心的时候提供注册服务
@RibbonClient(name = "cloud-sms",configuration = RibbonConfiguration.class)
@EnableFeignClients(basePackages = {"com.music.api"})
//@EnableFeignClients注解告诉框架扫描所有使用注解@FeignClient定义的feign客户端，并把feign客户端注册到IOC容器中,此处扫描com.hc.api包中使用了 @FeignClient注解的类
public class CloudUserApplication {

	public static void main(String[] args) {
		SpringApplication.run(CloudUserApplication.class, args);
	}

}
